package com.example.businesscalcproject;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebView;

public class Tabela_Depreciacao_Soma_Algarismo extends Activity {

	private String message;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		message = getIntent().getExtras().getString("html");
		WebView webview = new WebView(this);
		webview.setBackgroundResource(R.drawable.backgroud);
		setContentView(webview);
		String yourHtml = "<html><body><table  border='1'><tr>"
				+ "<td width='75' nowrap='nowrap'>"
				+ "<p style='text-align: center'><b>Ano</b></p>" + "</td>"
				+ "<td width='164' nowrap='nowrap'>"
				+ "<p style='text-align: center'><b>Valor de Historico</b></p>"
				+ " </td>" + "<td width='180' nowrap='nowrap'>"
				+ " <p style='text-align: center'><b>Percentual</b></p>"
				+ "</td>" + "<td width='153' nowrap='nowrap'>"
				+ "<p style='text-align: center'><b>Depreciacao</b></p>"
				+ " </td>" + "</tr>" + message + "</table>" + "</body></html>";
		webview.loadData(yourHtml, "text/html", "utf-8");
	}

}
